@keyframes dot {
  0% {
    width: 0;
    margin-right: 1em;
  }
  100% {
    width: 1em;
    margin-right: 0;
  }
}

.demo-image .block, .demo-image__placeholder .block, .demo-image__error .block {
  padding: 30px 0;
  text-align: center;
  border-right: solid 1px #eff2f6;
  display: inline-block;
  width: 20%;
  box-sizing: border-box;
  vertical-align: top;
}

.demo-image .block:last-child, .demo-image__placeholder .block:last-child, .demo-image__error .block:last-child {
  border-right: none;
}

.demo-image .demonstration, .demo-image__placeholder .demonstration, .demo-image__error .demonstration {
  display: block;
  color: #8492a6;
  font-size: 14px;
  margin-bottom: 20px;
}

.demo-image__placeholder .block, .demo-image__error .block {
  width: 49%;
}

.demo-image__placeholder .m-image, .demo-image__error .m-image {
  width: 300px;
  height: 200px;
}

.demo-image__placeholder .image-slot, .demo-image__error .image-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: #f5f7fa;
  color: #909399;
  font-size: 14px;
}

.demo-image__placeholder .dot {
  animation: dot 2s infinite steps(3, start);
  overflow: hidden;
}

.demo-image__error .image-slot {
  font-size: 30px;
}

.demo-image__lazy {
  height: 400px;
  overflow-y: auto;
}

.demo-image__lazy .m-image {
  display: block;
  min-height: 200px;
  margin-bottom: 10px;
}

.demo-image__lazy .m-image:last-child {
  margin-bottom: 0;
}
